import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
import './assets/font/iconfont.css'
import {
  NavBar,
  Form,
  Field,
  Button,
  Tabbar,
  TabbarItem,
  Tab,
  Tabs,
  Card,
  Tag
  , List
  , PullRefresh
  , Icon
  , Search
  , DropdownMenu
  , DropdownItem
  , IndexBar
  , IndexAnchor
  , Cell
  , Picker
  , Col, Row
  , Swipe, SwipeItem
  , Grid, GridItem
} from 'vant'

Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Col)
Vue.use(Row)
Vue.use(Picker)
Vue.use(Cell)
Vue.use(IndexBar)
Vue.use(IndexAnchor)

Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Search)
Vue.use(List)
Vue.use(PullRefresh)
Vue.use(Card)
Vue.use(Icon)
// import { loginApi } from '@/api'
Vue.use(Tag)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.use(Tabbar)
Vue.use(TabbarItem)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

// async function myFn () {
//   const res = await loginApi({ username: 'hzhmqd', password: '123456' })
//   console.log(res) // 后台返回的频道数据
// }
// myFn()
